
const net = require('net');
const respManager = require('./respManager');

const client = new net.Socket();
client.setEncoding('latin1');

client.on('data',(chunk)=>{
	respManager.onData(chunk);

})

client.on('error',(e)=>{
	console.log(e.message);
	respManager.onError(e.message);
})

client.connect(3344,'localhost');

client.respManager = respManager;
module.exports = client